GUI Help > General > setGadgetData

setGadgetData
setGadgetData handle gadget, int data

Description:
Sets the user-defined data associated with a gadget. This is a number which has no meaning to the plugin, but is useful in your application. This might be the index of an array which holds more information about the gadget, the object number of an object linked with the gadget in some way.

Use getGadgetData to retrive the data later.

Return Value:


Parameters:
gadget Handle of a gadget
data The data you wish to associate with the gadget.
Remarks:


See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)